//package com.alibaba.citrus.ots.forecast.repository.impl;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import com.alibaba.citrus.ots.forecast.repository.OrderWriteRepositoryForeCast;
//import com.alibaba.citrus.ots.forecast.repository.impl.converter.ForecastOrderRepositoryConverter;
//
//import com.epoch.app.bcots.platform_enhance.order.dto.CreateOrderResponse;
//import com.epoch.app.bcots.platform_enhance.order.model.Order;
//import com.epoch.app.bcots.platform_enhance.order.service.OrderService;
//import com.epoch.app.otsforecastsales.sdo.OrderSDO;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
///**
// * @Author yuanDeng
// * @Date 2021/9/17 13:37
// **/
//@Service
//public class OrderWriteRepositoryImplForeCast implements OrderWriteRepositoryForeCast {
//    @Autowired
//    private OrderService orderService;
//
//    @Override
//    public List<String> batchCreateOrder(List<OrderSDO> orderSDOS) {
//        List<String> orderIds=new ArrayList<>();
//        for (OrderSDO orderSDO : orderSDOS) {
//            Order createRequest = ForecastOrderRepositoryConverter.createOrderConverter(orderSDO);
//            CreateOrderResponse order = orderService.createOrder(createRequest);
//            orderIds.add(order.getLastInsertId());
//
//        }
//
//        /**/
//        return orderIds;
//    }
//
//}
